<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
	[#import "/admin/include/admin_pagination.ftl" as p/]
	[#include "/admin/include/admin_static.htm"]
	<script>
		$(function() {
			$("#query").click(function() {
				$("#searchForm").attr("action","${path}/admin/yuebaoLog/list.aspx").submit();
			});

			$("#export").click(function() {
				$("#searchForm").attr("action","${path}/admin/yuebaoLog/exportYuEbaoLogRecords.aspx").submit();
			});
		});
	</script>
    </head>
    <body>
        <div class="main_admin_content">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>活期宝记录</legend>
            </fieldset>
            <form id="searchForm" method="post" action="${path}/admin/yuebaoLog/list.aspx">
            <table class="search_table_div">
                <tr>
                    <td class="column">用户ID：</td>
                    <td><input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="userId" value="${userId }" /></td>
                    <td class="column">用户名：</td>
                    <td><input type="text" name="userName" value="${userName }" /></td>
                    <td class="column">资金记录类型：</td>



                    <td colspan="7">
					[@u.select listKey="dict_value"  headerKey="" headerValue="全部类型" listValue="dict_lab" headerButtom="false" list=DictionaryUtils.getDictListNid('yuebao_log_type')
					name="logType" value="${(account_type)!''}" /]
                    </td>
                    <td class="column">日期：</td>
                    <td>
                        <input type="text" onclick="WdatePicker();" value="${begin_date }"
                         name="begin_date" class="short" readonly="readonly" />
                        <i>至</i>
                        <input type="text" onclick="WdatePicker();" value="${end_date }"
                         name="end_date" class="short" readonly="readonly" />
                    </td>
                </tr>
                <tr>
                    <th colspan="100" class="btn_td">
                        <input id="export" type="button"  class="layui-btn "  style="float:left;width: 100px; heigth: 30px; line-height: 30px" value="导出">
                        <input id="query" type="button" class="layui-btn "   value="查询"/>
                        <input onclick="resent();" type="button"  class="layui-btn "  value="清空"/>
                    </th>
                </tr>
            </table>
            </form>

            <table class="layui-table">
                <colgroup>
                    <col width="50">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                </colgroup>
				<thead>
                <tr>
					<th>用户ID</th>
					<th>用户名称</th>
  					<th>记录编号</th>
					<th>记录类型</th>
					<th>操作金额</th>
					<th>总额</th>
					<th>昨日收益</th>
					<th>累计收益</th>
					<th>备注</th>
					<th>时间</th>
                </tr>
                </thead>
			[#list yuEbaoLogs as log]

					<tr>
						<td>${log.user_id}</td>
						<td>
								${log.u_user_name }
						</td>
						<td>${log.id }</td>
		            	<td>
							${p2p_get_dict("yuebao_log_type",log.type )}
						</td>
						<td>￥${log.money }</td>
						<td>￥${log.total }</td>
						<td>￥${log.yesterday_income }</td>
						<td>￥${log.total_income }</td>
						<td>${log.remark }</td>
						<td>
						${p2p_date_format(log.addtime,"yyyy-MM-dd HH:mm:ss")}


						</td>
					</tr>
			[/#list]
                
            </table>

			[@p.pager pager = page parameterMap={"logType":"${logType}","userId":"${userId }","userName":"${userName }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/yuebaoLog/list.aspx"/]
        </div>
    </body>
</html>